
do
###

for file in 20 50 100 200
do
##"

echo "${top[i]}    ${file}"

startYear=1995
endYear=2007

while [ ${startYear} -le ${endYear} ]
do
	for month in 01 02 03 04 05 06 07 08 09 10 11 12
	do 
		
####################
		echo "BEGIN {
	FS=\"\\t\"
	return_m=1
}

\$1 ~/${startYear}${month}[0-9][0-9]/{
	print \$1 \"\\t\" \$(15) \"\\t\" \$(12)
	
}

END { }
" > caculate_return.awk
#####################
	awk -f caculate_return.awk ${top[i]}.${file}.${IMPORT} >> ${top[i]}.${file}.${startYear}.${month}.result
	done

startYear=$((startYear+1))	
done

	perl caculate_return.PL $file ${top[i]} > ${top[i]}.$file.${EXPORT}

	rm ${top[i]}*result

##
done

###
	i=$((i+1))
done





#mv *.array.top50 ../
mv *.${EXPORT} ../${EXPORT}/